<?php

/**
 * @Author: wuchenge
 * @Date:   2022-03-25 15:51:01
 * @Email: ligui0506@126.com
 * @Descript:
 */
namespace App\Models;

class HotLabel extends Model
{
    protected $table    = 'hot_labels';
    protected $guarded  = ['id', 'created_at', 'updated_at'];
    protected $fillable = ['name', 'sort'];

    public static function getMaxSort(): int
    {
        $max = self::max('sort');
        return $max + 1;
    }
}
